package com.hfh.review;

/**
 * @Author hfh
 * @Date 2022 09 16 09 38
 **/
public class Transfer{
    private Account src;
    private Account target;
    private int money;

    public void change(Account src,Account target,int money){
        src.setMoney(src.getMoney()-money);
        target.setMoney(target.getMoney()+money);
    }
//
//    public Transfer(Account src, Account target, int money) {
//        this.src = src;
//        this.target = target;
//        this.money = money;
//    }
}
